Conversation
doitchuu
approved these changes
Mar 24, 2026
| } | ||
|
|
||
| return stack1.join("") === stack2.join(""); | ||
| }; |
Member
There was a problem hiding this comment.
반복되는 풀이가 있어서 함수로 따로 빼도 좋을 것 같아요 👍
Collaborator
There was a problem hiding this comment.
스택을 활용한 정석 풀이로 잘 구현하신 것 같네요, 이미 말씀해주신 부분이긴하지만, s, t를 처리하는 로직이 거의 동일해서 보조 함수로 분리하면 더 깔끔할 것 같아요!!
| .split("") | ||
| .filter((num) => num === "1") | ||
| .join("").length; | ||
|
|
Collaborator
There was a problem hiding this comment.
toString, split, filter, join 등 메서드 잘 활용하시는거같네요 ㅎㅎ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
이렇게 풀었어요
1. Backspace String Compare
1) 복잡도 계산
2) 접근 아이디어
3) 회고
2. Counting Bits
1) 복잡도 계산
2) 접근 아이디어
3) 회고